package smw.spring.test;

import junit.framework.Assert;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import smw.spring.SmwBean2;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:/applicationContext.xml"})
public class SmwBeanTest2 {
	@Autowired
	private SmwBean2 bean;
	
	
	
	public SmwBean2 getBean() {
		return bean;
	}



	public void setBean(SmwBean2 bean) {
		this.bean = bean;
	}



	@Test
	public void testAutoWiredAnnotation(){
		String returnvalue = bean.helloSuper();
		Assert.assertEquals("chintaejinchintaejin", returnvalue);
	}

}
